<html>
    <head>
        <#include "/${system}/component/html-head.ftl" />
    </head>
    <body>
        <#include "/${system}/component/head.ftl" />
        <div class="admin">
            <div class="aleft" id="left-container"></div>
            <div class="aright">
                <div class="arz cl">
                    <a href="notice-add"><i class="layui-icon">&#xe608;</i>添加公告</a>
                </div>
                <form id="container" method="post" class="aform cl">
                </form>
                <div id="pager" class="qing-text-center"></div>
            </div>
        </div>
        <script>
            layui.config({base:'${base}/${system}/js/'}).use('notice');
        </script>
        <script id="template" type="text/template">
            <table width="100%">
                <tr>
                    <th width="40%" align="center">公告内容</th>
                    <th width="20%" align="center">开始时间</th>
                    <th width="20%" align="center">结束时间</th>
                    <th width="10%" align="center">是否可见</th>
                    <th width="10%" align="center">基本操作</th>
                </tr>
                {{#  layui.each(d.list, function(index, item) { }}
                    <tr>
                        <td align="center">{{item.content}}</td>
                        <td align="center">{{Format(item.start,"yyyy-MM-dd hh:mm:ss")}}</td>
                        <td align="center">{{Format(item.end,"yyyy-MM-dd hh:mm:ss")}}</td>
                        <td align="center">
                            {{# if(item.visible == 1) { }} 
                                <span style="color: red;">是</span>
                            {{# } else { }}
                                <span style="color: red;">否</span>
                            {{# } }}
                        </td>
                        <td align="center">
                            <a href="/blog/back/notice-edit?id={{item.id}}">修改</a> | <a href="javascript:;" class="row-del" data="{{item.id}}">删除</a>
                        </td>
                    </tr>
                {{# }); }}
            </table>
        </script>
    </body>
</html>